package com.beka.security.controller;

import net.sf.json.JSONObject;
import org.apache.commons.lang.StringUtils;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by IntelliJ IDEA.
 * User: Administrator
 * Date: 12-4-17
 * Time: 上午1:54
 * 测试的一个模块，关于框架的测试
 */
@Controller
@RequestMapping(value = "/login.page")
public class Login {

    Logger logger = Logger.getLogger(Login.class);

    @RequestMapping(params = "method=login",method = RequestMethod.POST )
    public String login(Model model, HttpServletRequest request) {
        logger.debug("this is the page");
         logger.debug("this is the page");
        logger.debug("this is the page");

        System.out.print("in--");
        return "login/mainmenu";
    }

}
